import baseModules from "./base";
import businessModules from "./business";
export const CONFIG = [...baseModules.list, ...businessModules.list];
export const COMS_JSON = { ...baseModules.json, ...businessModules.json };
import { getModules } from "@/utils/getModulesFiles";
//业务组件注册
const business = getModules(require.context("./business", true, /\.vue$/));

const modules = { ...business };
console.log("===modules===", modules);

const install = (app) => {
  Object.keys(modules).map((v) => {
    const component = modules[v];
    app.component(component.name, component);
  });
};
export default {
  install,
  ...modules,
};
